<?php

require_once 'shuju.php';
header("content-type:text/htlm;charset=utf-8");

$username = $_POST['username'];
$password = md5(['password']);

$login_time = time();

$sql="
INSERT INTO  `hzk`.`biaodan` (
`id` ,
`account` ,
`password` ,
`login_time`
)
VALUES (
NULL ,  '$username',  '$password',  '$login_time'
);

";
//echo $sql;
//die;
$result = $conn->query($sql);
if($result === false){
    echo "数据库操作失败！";
}else {
    echo "注册成功";
    header("Location:biaodan.php");
}
?>